<?php

class Admin_Form_StateUpdate extends Zend_Form
{

    public function init()
    {
        
    }

    public function main($info) {
        $this->setMethod("post");
        
        #name
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel("Update State Name:")
                ->setRequired(true)
                ->setValue($info['name']);
        
        #id
        $id = new Zend_Form_Element_Hidden('id');
        $id->setValue($info['id']);
        
        #submit
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel("Update State")
                ->setAttribs(array('class'=>'btn btn-success'));
        
        $this->addElements(array($name,$id,$submit));
        
    }
    

}

